package com.pig4cloud.pig.module.api.entity.charger;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 心跳上报记录对象 charger_port
 *
 * @author ruoyi
 * @date 2022-05-07
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("charger_port_record")
public class ChargerPortRecord implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;
    /**
     *  设备id
     */
    private Integer chargerId;
    /**
     *  设备sn 编号
     */
    private String chargerSn;
    /**
     *  设备编号
     */
    private String chargerNum;
    /**
     *  充电端口号
     */
    private Integer chargerPort;
    /**
     *  命令编号
     */
    private String orderNum;
    /**
     *  电压
     */
    private Double voltage;
    /**
     * 电流
     */
    private Double electricCurrent;

    /**
     * 功率
     */
    private Double power;

    /**
     * 当前功率下的单价
     */
    private BigDecimal singlePrice;

    /**
     * 当前功率下1分钟下的总价
     */
    private BigDecimal totalPrice;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     *  心跳时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     *  用户id
     */
    private Integer userId;

    /**
     *  初始的字符串数据
     */
    private String dataStr;

    /**
     * 当前功率所在的 规则id
     */
    private Integer powerRoleId;
    /**
     *  备注信息
     */
    private String remark;

    /**
     * 当前点斜率
     */
    private Double slope;

    private Double slopeLastTen;

    private String slopePoints;

    private String slopePointsTen;


	private String stopCode;

	private String stopMsg;
}
